package fact.services.authorization;


import javax.faces.bean.ManagedBean;
import javax.faces.bean.SessionScoped;

/**
 * @author Chris
 * 
 */
@SessionScoped
@ManagedBean(name = SessionForm.BEAN_NAME)
public class SessionForm
{
	public final static String BEAN_NAME = "sessionBean";
	private boolean loggedIn;
	private boolean admin;
	private boolean active;
	private boolean showLogin;

	/**
	 * @return
	 */
	public boolean isLoggedIn()
	{
		//TODO add logic here
		return loggedIn;
	}

	/**
	 * @return
	 */
	public boolean isAdmin()
	{
		//TODO add logic here
		return admin;
	}

	/**
    * @return
    */
   public boolean isActive()
   {
   	//TODO add logic here
	   return active;
   }

	/**
    * 
    */
   public void logIn()
   {
   	//TODO mark fields to require login
   	showLogin = true;
   	//we were using richfaces:modalPanel showWhenRendered="true" rendered="#{sessionBean.showLogin}"
   }
   
   //setters and other code goes heres
}
